﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Dribble Ball</title>
    <link rel="stylesheet" href="../css/db.css" />
    <link rel="stylesheet" href="../css/colorbox.css" />
     <script type="text/javascript" src="../js/track.js"/>
</head>
<body>
    <div id="status">
        <div id="counter">
        </div>
    </div>
    <div id="win">
        <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
            width="2500" height="1000" version="1.1">
            <linearGradient id="grad1" x1="0%" y1="0%" x2="0%" y2="100%">
                <stop offset="0%" style="stop-color: #FFFFFF; stop-opacity: 0.4" />
                <stop offset="100%" style="stop-color: #FFE570; stop-opacity: 0.4" />
            </linearGradient>
            <defs>
                <path id="direction" stroke="#000000" d="m-10.60661,28.19893c-2.57361,-1.51245 -2.23609,-2.42815 4.02107,-10.90557c3.15933,-4.28057 5.74433,-7.90729 5.74433,-8.05942c0,-0.15191 -8.72451,-0.27635 -19.38756,-0.27635l-19.38774,0l0,-8.01723l0,-8.01712l19.5413,0c15.06768,0 19.37321,-0.24151 18.80682,-1.05485c-0.40398,-0.5803 -3.16043,-4.43034 -6.12494,-8.55574c-5.58802,-7.7766 -5.58636,-9.86195 0.00884,-10.50849c2.78446,-0.32158 46.13598,24.39523 47.62597,27.15416c-14.43994,9.8506 -31.70061,20.16171 -47.60056,29.25328c-0.83834,0 -2.29997,-0.45575 -3.24752,-1.01267l-0.00001,0.00001z"
                    stroke-width="5" fill="#ff0000">
                    <animateTransform attributeName="transform" attributeType="XML" type="scale" values="1;1.1;1"
                        dur="1s" fill="freeze" repeatCount="indefinite" />
                    <animate attributeType="css" attributeName="opacity" values="0.9;1;0.9" dur="1s"
                        fill="freeze" repeatCount="indefinite" />
                </path>
            </defs>
            <rect width="100%" height="100%" fill="url(#grad1)" />
            <g id="main">
                <line x2="0" y2="800" x1="500" y1="800" db-pad="ground" />
                <line x1="0" y1="1000" x2="800" y2="1000" db-pad="ground" />
                <!--up-->
                <use xlink:href="#direction" transform="translate(600 800) rotate(-90)"/>
                <line x1="500" y1="0" x2="500" y2="800" db-pad="wood" />
                <line x1="800" y1="1000" x2="800" y2="200" db-pad="wood" />
                <circle cx="800" cy="600" r="140" db-pad="bad" />
                <g transform="translate(750 350)" db-cat="reward" />
                <g transform="translate(550 50)" db-cat="reward" />
                <!--left-->
                <use xlink:href="#direction" transform="translate(1000 100)"/>
                <line x1="2500" y1="0" x2="500" y2="0" db-pad="wood" />
               
                <line x1="800" y1="200" x2="1500" y2="200" db-pad="wood" />
                <line x1="1500" y1="200" x2="1500" y2="300" db-pad="ground" />
                <line x1="1500" y1="300" x2="1600" y2="300" db-pad="ground" />
                <line x1="1600" y1="300" x2="1600" y2="400" db-pad="ground" />
                <line x1="1600" y1="400" x2="1700" y2="400" db-pad="ground" />
                <line x1="1700" y1="400" x2="1700" y2="500" db-pad="ground" />
                <line x1="1700" y1="500" x2="2100" y2="500" db-pad="ground" />
                <line x1="2100" y1="500" x2="2100" y2="600" db-pad="ground" />
                <line x1="2100" y1="600" x2="2500" y2="600" db-pad="bad" />
                <g transform="translate(2280 50)" db-cat="reward" />
                <!--target-->
                <line x1="2200" y1="500" x2="2360" y2="500" db-cat="target" />
                <line x2="2200" y2="510" x1="2360" y1="510" db-pad="wood" />
                <circle cx="2200" cy="500" r="5" db-pad="wood" />
                <circle cx="2360" cy="500" r="5" db-pad="wood" />
                <line x1="2500" y1="600" x2="2500" y2="0" db-pad="bad" />
            </g>
            <rect id="dummy" width="100%" height="100%" fill-opacity="0">
            </rect>
            <g id="front">
                <defs>
                    <marker id="mTriangle" markerWidth="50" markerHeight="100" refX="50" refY="50" orient="auto">
                        <path d="M 0 0 50 50 0 100 Z" style="fill: black;" />
                    </marker>
                </defs>
            </g>
        </svg>
    </div>
    <div id="skip">
        &lt;&lt; Skip Preview
    </div>
    <script type="text/javascript" src="../js/jquery.js"></script>
    <script type="text/javascript" src="../js/jquery.countdown.js"></script>
    <script type="text/javascript" src="../js/jquery.colorbox.js"></script>
    <script type="text/javascript" src="../js/svg.js"></script>
    <script type="text/javascript" src="../js/db.js"></script>
    <script type="text/javascript">
    //<![CDATA[
        db.path = [{ x: 0, y: 900 }, { x: 800, y: 900 }, { x: 800, y: 0 }, { x: 2500, y: 0}];
       
        //highlightDesign();

        db.isInBoundary = function (x, y) {
            return y < 1200;
        }


        startGame({ time: 30, ballPosition: { x: 100, y: 900} });
    //]]>
    </script>
</body>
</html>
